*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#box{
    position: fixed;
    left: 50%;
    top:50%;
    transform:translate(-50%,-50%);
    overflow: hidden;

}
#box> li{
    float: left;
    width: 10px;
    height: 50px;
    background-color: red;
    list-style: none;
    margin-right: 10px;
    animation-name:loading;
    animation-duration:0.5s;
    animation-timing-function:linear;
    animation-iteration-count:infinite;
    animation-direction:alternate;
}
#box> li:last-child{
    margin-right: 0;
}

@keyframes loading{
    0%{
        transform:scale(1);
    }
    100%{
        transform:scale(0);
    }
}

#box>li:nth-child(2){
    animation-delay:0.1s;
}
#box>li:nth-child(3){
    animation-delay:0.2s;
}
#box>li:nth-child(4){
    animation-delay:0.3s;
}
#box>li:nth-child(5){
    animation-delay:0.4s;
}
#box>li:nth-child(6){
    animation-delay:0.5s;
}
#box>li:nth-child(7){
    animation-delay:0.6s;
}
#box>li:nth-child(8){
    animation-delay:0.7s;
}
#box>li:nth-child(9){
    animation-delay:0.8s;
}
#box>li:nth-child(10){
    animation-delay:0.9s;
}
